/*******************************************************************************
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
		function comptime(beginTime,endTime){
	 			
	 			var beginTimes=beginTime.substring(0,10).split('-');
	 			var endTimes=endTime.substring(0,10).split('-');
	 			
	 			beginTime=beginTimes[1]+'/'+beginTimes[2]+'/'+beginTimes[0]+' '+beginTime.substring(10,19);
	 			endTime=endTimes[1]+'/'+endTimes[2]+'/'+endTimes[0]+' '+endTime.substring(10,19);
	 		
	 			//alert(beginTime+endTime);
	 			//alert(Date.parse(endTime));alert(Date.parse(beginTime));
	 			 
	 			 //beginTime=beginTime.replace(regS,)
	 			
	 			var a =(Date.parse(endTime)-Date.parse(beginTime));
	 			
	 			if(a<0){
		 		
	 			return -1;
	 			}else if (a>0){
		 		
	 			return 1;
	 			}else if (a==0){
	 			return 0;
	 			}else{
	 			return 'exception';}
	 		}


